<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 16-11-26
 * Time: 下午8:34
 */
namespace app\watershop\controller;

use app\watershop\controller;
class Mytest extends controller\Test {
    public function index(){
        echo session('shop');
//        $count = model('ShopMember')->getMemberCount(['member_id'=>1]);
//        $count = ('shop_member')->count();
//        echo $count;

        return '<br>';
    }
    public function test($name='kk',$extend=1){
        if($extend==1){
            echo $name;
        }else{
            $name = $this->getname();
            echo $name;
        }
        return ;
    }
}